package com.ghck.shop.dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import com.ghck.shop.model.BannerCategory;

public interface BannerCategoryMapper {

	@Select("select * from t_banner_category")
	public List<BannerCategory> allBannerCategorys();
	
	@Insert("insert into t_banner_category (category_id) value (#{categoryId})")
	public Integer insertBannerCategory(Integer categoryId);
	
	@Delete("delete from t_banner_category where category_id = #{categoryId}")
	public Integer deleteBannerCategory(Integer categoryId);
	
}